import request from "@/utils/request.js";

export function listContract(query){
    return request({
        url:'/contract/list',
        method:'get',
        params:query
    })
}
export function submitform1(data){
    return request({
        url:'/contract/add1',
        method:'post',
        data:data
    })
}

export function checkName(name){
    return request({
        url:'/contract/check/name?name='+name,
        method:'get'
    })
}

export function getContract(id){
    return request({
        url:'/contract?id='+id,
        method:'get'
    })
}
export function updateForm1(data){
    return request({
        url:'/contract/update',
        method:'post',
        data:data
    })
}

export function deleteOne(id){
    return request({
        url:'/contract/remove?id='+id,
        method:'get'
    })
}
